package homework;

import org.junit.Test;

public class maxandmin {
	public static void main(String[] args) {
		int[] array = {61,05,57,19,23,54,66,88,90,14};
		int max = array[0];
		int min = array[0];
		for (int i = 0; i < array.length; i++) {
			if (array[i]>max) {
				max = array[i];
			}
			if (array[i]<min) {
				min = array[i];
			}
		}
		System.out.println("最小值是："+min );
		System.out.println("最大值是："+max);
	}
}
